package cn.skcks.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/encoding")
public class EncodingController {

	// 过滤器解决乱码
	@RequestMapping(value = "/test1")
	public String test1(Model model, String name) {
		System.out.println(name);

		model.addAttribute("msg", name);
		return "test";
	}
}